package edu.xcdq;

import java.util.Scanner;

public class Demo04 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        for (int i = 0 ;  i  < 5;i ++){
            System.out.println("欢迎光临第"+(i+1)+"家店：");
            for (int j = 0 ;  j  < 3;j ++){
                System.out.println("要离开吗？(y/n)");
                String shifou = scanner.next();
                if ("y".equals(shifou)){
                    System.out.println("离店结账");
                    break;
                }else  if ("n".equals(shifou)){
                    System.out.println("买了一件衣服");
                }
            }


        }


    }
}
